<template>
    <div class="pja">
        <Pjzi v-for="(v,i) in arr" :key="i" 
        :user="v.user"
        :ptext="v.ptext"
        :image="v.image"
        :font="v.font"
        :timer="v.timer"/>
    </div>
</template>

<script>
import Pjzi from "@/components/ddgHD/pjzi.vue"
import {getlink} from "@/api/getapi.js"
export default {
    data(){
        return {
             arr:[]
        }
    },
    created(){
        getlink("/data/ddg").then((ok)=>{
            this.arr=ok.data.pingjia
            // ok.data.pingjia.forEach((v)=>{
            //     this.arr=v;
            //     // console.log(v)
            // })
            // console.log(ok.data.pingjia)
        })
    },
    components:{
        Pjzi
    }
    
}
</script>

<style scoped>
    .pja{
        width: 100%;
        font-size: 0.12rem;
        box-sizing: border-box;
        padding: 0.1rem;
    }
    
</style>